* {
  touch-action: pan-y;
}


.msgWindow {
  width: 322px;
  height: 336px;
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  margin-top: -168px;
  margin-left: -161px;
  border-radius: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 35px rgba(105, 100, 105, 0.5);

  .title {
    width: 100%;
    height: 46px;
    padding-left: 4px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

    div {
      width: 28px;
      margin: 10px 0;
      background: url('@/assets/images/pk.png') no-repeat center center;
      background-size: 100% 100%;
      border: 1px solid #fff;
    }

    span {
      width: 100%;
      line-height: 25px;
      margin: 10px 0;
      letter-spacing: 1px;
      font-size: 18px;
      color: black;
      display: block;
      border: 1px solid #fff;
    }
  }

  .content {
    .list {
      margin: 0;
      height: 232px;
      overflow-y: scroll;
      padding: 0 14px;

      .colTitle {
        color: rgb(230, 230, 0);
      }

      .colContent {
        color: rgb(0, 244, 0);
      }

      p {
        margin: 7px 0;
        font-size: 15px;
        text-align: left;

        .self {
          color: rgb(0, 244, 0);
        }

        .enemys {
          color: darkorange;
        }

        .default {
          color: #f4fbfa;
        }

        .tourist {
          color: #ffc800;
        }
      }
    }

    .list:after {
      position: absolute;
      bottom: 0;
    }

    .floor {
      padding: 7px 14px;

      button {
        width: 100%;
        height: 42px;
        font-size: 14px;
      }
    }

  }
}

.player {
  width: 364px;
  height: 560px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -182px;
  margin-top: -280px;

  .user {
    height: 70px;
    width: 100%;
    padding: 9px 4px;

    .icon {
      width: 100%;
      height: 49px;
      display: flex;
      justify-content: center;

      img {
        padding: 4px;
      }

      .defBorder {
        width: 49px;
        height: 49px;
      }

      .border {
        width: 49px;
        height: 49px;

        // 用来表现四个边框样式的背景设置
        background: linear-gradient(0deg, transparent 50%, #ff7d00 25%) repeat-y 0 0, // 左边框
        linear-gradient(0deg, transparent 50%, #ff7d00 25%) repeat-y 100% 0, // 右边框
        linear-gradient(90deg, transparent 50%, #ff7d00 25%) repeat-x 0 0, // 上边框
        linear-gradient(90deg, transparent 50%, #ff7d00 25%) repeat-x 0 100%; // 下边框
        // 分别对应四条边框中间的长度，一条边框可以由多个size组成
        background-size: 1px 5px, 1px 5px, 5px 1px, 5px 1px;
        animation: shine 1s infinite linear;
      }
    }

    .floor {
      width: 100%;
      height: 49px;
      padding: 0 4px;

      button {
        width: 100%;
        height: 100%;
        font-size: 13px;
      }
    }

    .body {
      background: rgba(0, 0, 0, .7);
      height: 49px;
      font-size: 15px;
      text-align: center;
      border-radius: 3px;

      .name {
        margin-top: 4px;
        line-height: 21px;
        color: #47fc47;
      }

      .score {
        margin-top: 4px;
        line-height: 21px;
        color: gold;
      }

      .allTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }

      .stepTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }
    }
  }

  .enemy {
    height: 70px;
    width: 100%;
    padding: 9px 4px;
    margin-top: 420px;

    .icon {
      width: 100%;
      height: 49px;
      display: flex;
      justify-content: center;

      img {
        padding: 4px;
      }

      .defBorder {
        width: 49px;
        height: 49px;

      }

      .border {
        width: 49px;
        height: 49px;

        // 用来表现四个边框样式的背景设置
        background: linear-gradient(0deg, transparent 50%, #ff7d00 25%) repeat-y 0 0, // 左边框
        linear-gradient(0deg, transparent 50%, #ff7d00 25%) repeat-y 100% 0, // 右边框
        linear-gradient(90deg, transparent 50%, #ff7d00 25%) repeat-x 0 0, // 上边框
        linear-gradient(90deg, transparent 50%, #ff7d00 25%) repeat-x 0 100%; // 下边框
        // 分别对应四条边框中间的长度，一条边框可以由多个size组成
        background-size: 1px 5px, 1px 5px, 5px 1px, 5px 1px;
        animation: shine 1s infinite linear;
      }
    }

    .floor {
      width: 100%;
      height: 49px;
      padding: 0 4px;

      button {
        width: 100%;
        height: 100%;
        font-size: 13px;
      }
    }

    .body {
      background: rgba(0, 0, 0, .7);
      height: 49px;
      font-size: 15px;
      text-align: center;
      border-radius: 3px;

      .name {
        margin-top: 4px;
        line-height: 21px;
        color: #47fc47;
      }

      .score {
        margin-top: 4px;
        line-height: 21px;
        color: gold;
      }

      .allTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }

      .stepTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }
    }
  }
}

.watchMsg {
  position: absolute;
  width: 92vw;
  height: 25px;
  left: 50%;
  top: 50%;
  margin-top: -219px;
  margin-left: -46vw;
  font-size: 12px;
  color: blue;
  overflow: hidden;

  div {
    display: inline-block;
    height: 25px;
    line-height: 25px;
    // 对超出内容隐藏
    // overflow: hidden;
    // 显示省略符号来代表被修剪的文本
    // text-overflow: ellipsis;
    // 文本不会换行，文本会在在同一行上继续，直到遇到 <br> 标签为止。
    white-space: nowrap;
    animation-name: textFrame;
    animation-duration: 10s;
    animation-delay: 3s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
  }
}

@keyframes textFrame {
  // 起始位置
  0% {
    transform: translateX(100%);
    -webkit-transform: translateX(0px);
  }
  // 终点位置
  100% {
    -webkit-transform: translateX(-100%);
  }
}

.over {
  width: 126px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  border: 2px #f30404de solid;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  color: #f30404de;
  letter-spacing: 2px;
  text-indent: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -63px;
  margin-top: -18px;
  z-index: 10;
  font-weight: bold;
  transform: rotateZ(-30deg);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  animation: show 1.5s;
}

@keyframes show {
  0% {
    transform: scale(1) rotateZ(-30deg);
  }
  50% {
    transform: scale(0.85) rotateZ(-30deg);
  }
  100% {
    transform: scale(1) rotateZ(-30deg);
  }
}


@keyframes shine {
  from {
  }
  to {
    // 比如第一个表示0 -5px在动画中表示左边框一秒内上移5px,视觉上就形成了向上滑动的效果
    background-position: 0 -5px, 100% 5px, 5px 0, -5px 100%;
  }
}
